class Exit < ActiveRecord::Base
  belongs_to :map
  belongs_to :destination, :class_name => 'Map'
  has_one :direction
  
  validates_destination :presence => true
  validates_direction :presence => true
  
  def to_s
    direction << ' to ' << destination.to_s
  end
end
